<?php

use app\adminapi\middleware\JwtAuth;
use app\adminapi\middleware\OperateLog;
use app\adminapi\middleware\CheckPermission;
use think\facade\Route;

// codex价格
Route::group('codex_price', function () {
    Route::get('index', 'CodexPrice/index')->name('codex_price:list')->setOption('real_name', '获取codex价格列表');
    Route::get('read/:id', 'CodexPrice/read')->name('codex_price:detail')->setOption('real_name', 'codex价格详情');
    Route::post('save', 'CodexPrice/save')->name('codex_price:add')->setOption('real_name', '添加codex价格');
    Route::put('update/:id', 'CodexPrice/update')->name('codex_price:update')->setOption('real_name', '编辑codex价格');
    Route::delete('delete/:id', 'CodexPrice/delete')->name('codex_price:delete')->setOption('real_name', '删除codex价格');
    Route::post('syncCodexPrice', 'CodexPrice/syncCodexPrice')->name('syncCodexPrice:sync')->setOption('real_name', '同步codex价格');
})->middleware([JwtAuth::class, OperateLog::class, CheckPermission::class]);
